package com.mxx.tomcat.verification.annotation;

import java.lang.annotation.*;

/**
 * @Auther: Mr. Zeng
 * @Date: 2021/4/6 11:52
 * @Description: 暂无描述
 */
@Target({ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface Verify {

    String[] value();

    Type type() default Type.JSON;

    boolean allowEmpty() default false;


    enum Type {
        JSON(1), FORM(2), URL(3);
        private Integer code;

        Type(Integer code) {
            this.code = code;
        }


    }
}
